package org.dashboard.service;

import com.github.pagehelper.PageInfo;
import org.dashboard.bean.AdChart;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface AdChartService {
    int deleteByPrimaryKey(Integer chartId);

    int insert(AdChart record);

    int insertSelective(AdChart record);

    AdChart selectByPrimaryKey(Integer chartId);

    int updateByPrimaryKeySelective(AdChart record);

    int updateByPrimaryKeyWithBLOBs(AdChart record);

    int updateByPrimaryKey(AdChart record);


    List<AdChart> selectAdCharts();

    boolean deleteByPrimaryKeys(ArrayList<Integer> chartIds);

    List<Map<String, Object>> loadUserRoleCharts(Integer userId, Integer resourceType);

    PageInfo selectAdChartsPaged(String criteria, Integer pageNum, Integer pageSize);
}
